package com.vcg.community.filter;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 容器启动就运行任务
 * @author felayman
 * @since 16/1/5
 */
public class DynamoLauncher {
    public static void main(String [] args) throws InterruptedException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        DynamoWorker dynamoWorker = context.getBean(DynamoWorker.class);
        dynamoWorker.adapterRun();
        context.start();
        Thread.currentThread().join();
    }
}
